Skip to content

Release - #30

Merged
prestoncraw merged 2 commits into
masterfrom
development
Nov 5, 2026
Merged

prestoncraw merged 2 commits into
masterfrom
development

Conversation

@prestoncraw

Copy link
Copy Markdown
Contributor

No description provided.

ritchiecarroll and others added 2 commits November 5, 2026 15:23
Millisecond aligned wall-clock timestamps (Ticks.AlignToMillisecondDistribution)
cannot represent every frame slot above 1,000 frames per second. At 3,000 fps
file replay with SimulateTimestamp produced only about 2,000 distinct timestamps
per second, with some slots used twice, so downstream consumers aligning to a
3,000-slot grid lost about a third of the frames.

- Add SimulatedTimestampGenerator: anchors to the wall clock on the first frame,
  then advances a frame counter across the full-resolution sub-second
  distribution so every slot is used once and frames are exactly one period
  apart; re-anchors to the wall clock if drift exceeds MaximumDrift.
- MultiProtocolFrameParser: use the generator for captured-frame replay timing
  when DefinedFrameRate > 1,000 (the existing behavior is unchanged at or below
  1,000 fps), reset it on Start, report resyncs in Status, and use
  sub-second alignment for injected simulated timestamps.
- ReplayTimer: add an optional catch-up window (100 ms for high frame rates) so
  scheduler jitter at sub-millisecond periods does not lower replay throughput
  below the defined frame rate. The default of zero keeps the previous behavior.
- Add SimulatedTimestampGeneratorTest unit tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Fix simulated timestamps for frame rates above 1,000 fps
@prestoncraw
prestoncraw merged commit cc751e3 into master Nov 5, 2026
1 of 2 checks passed
@prestoncraw
prestoncraw deleted the development branch November 5, 2026 21:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants